package pojo;

/**
 * 购物车信息类
 * 姚波
 */
public class ShoppingCart {
    private int cartId;                //购物车Id
    private int memberId;              //会员Id
    private int cartTotal;             //商品种类总数

    public int getCartId() {
        return cartId;
    }

    public void setCartId(int cartId) {
        this.cartId = cartId;
    }

    public int getMemberId() {
        return memberId;
    }

    public void setMemberId(int memberId) {
        this.memberId = memberId;
    }

    public int getCartTotal() {
        return cartTotal;
    }

    public void setCartTotal(int cartTotal) {
        this.cartTotal = cartTotal;
    }

    public ShoppingCart(int cartId, int memberId, int cartTotal) {
        this.cartId = cartId;
        this.memberId = memberId;
        this.cartTotal = cartTotal;
    }

    public ShoppingCart() {
    }

    @Override
    public String toString() {
        return "ShoppingCart{" +
                "cartId=" + cartId +
                ", memberId=" + memberId +
                ", cartTotal=" + cartTotal +
                '}';
    }
}
